import {
  BuilderComponentPluginFactory,
  BuilderComponentPlugin,
  ICodeStruct,
} from '../../types';

const pluginFactory: BuilderComponentPluginFactory<unknown> = () => {
  const plugin: BuilderComponentPlugin = async (pre: ICodeStruct) => {
    const next: ICodeStruct = {
      ...pre,
    };

    return next;
  };
  return plugin;
};

export default pluginFactory;
